package cn.zorbus.laian.infrastructure.common.command;

import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.SchemaProperty;
import jakarta.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Range;

/**
 * create in 2023/12/1 20:00
 *
 * @author shishaodong
 * @version 0.0.1
 */
@Schema(name = "开关切换实体")
public record ChangeSwitchCommand(

        @SchemaProperty(name = "开关 id")
        @Range(min = 1, max = 200)
        Integer id,

        @SchemaProperty(name = "开关状态")
        @Range(min = 0, max = 1)
        Integer status) {
}
